<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<style>
			*{
				padding: 0px;
				margin: 0px;
			}
			input{
				position: relative;
				z-index: 8;
			}
			.p1{
				transition: all linear 0.3s;
				background-color: lightblue;
				height: 100px;
				width: 100%;
				position: relative;
				top: 0;
				left: 0;
				z-index: 8;
			}
			.p2{
				transition: all linear 0.5s;
				background-color: red;
				height: 100px;
				width: 100%;
				position: absolute;
				top: 200px;
				left: 0;
				z-index: 8;
			}
			.ng-hide {
				background-color: transparent;
				top: -200px;
				left: 0px;
			}
			.div1,.div2 {
				width: 100%;
				height: 100%;
				background-color: #000000;
				position: fixed;
				top: 0px;
				opacity: 0.1;
				z-index: 5;
			}
		</style>
		<script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>
		<script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular-animate.min.js"></script>
	</head>

	<body ng-app="ngAnimate">

		<h1>隐藏 DIV: <input type="checkbox" ng-model="myCheck" ng-click="show=true"></h1>

		<p class="p1" ng-hide="myCheck"></p>
		
		<p class="p2" ng-show="show==true"></p>
		
		<div class="div1" ng-hide="myCheck"></div>
        
        <div class="div2" ng-show="show==true"></div>
        
	</body>

</html>